From 549d0cf28185555404dbb28b53df50c7e3b58139 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 25 Jun 2009 13:51:40 +0100 Subject: [PATCH] x86 hvm: Make sure port 0x80 in hvm_io_table[] is set correctly regardless of execution order of hvm_enable() and check_port80(). Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/quirks.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/x86/hvm/quirks.c b/xen/arch/x86/hvm/quirks.c index a49fa0d284..1e08a2beba 100644 --- a/xen/arch/x86/hvm/quirks.c +++ b/xen/arch/x86/hvm/quirks.c @@ -20,6 +20,8 @@ #include #include #include +#include +#include int hvm_port80_allowed = -1; boolean_param("hvm_port80", hvm_port80_allowed); @@ -88,6 +90,9 @@ static int __init check_port80(void) dmi_check_system(hvm_no_port80_dmi_table); + if ( !hvm_port80_allowed ) + __set_bit(0x80, hvm_io_bitmap); + return 0; } __initcall(check_port80); -- 2.30.2